package cn.com.ctbri.geomonitor.service;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import org.activiti.engine.identity.Group;
import org.activiti.engine.identity.User;

import cn.com.ctbri.geomonitor.bean.UserVO;
import cn.com.ctbri.geomonitor.model.Flow;
import cn.com.ctbri.geomonitor.model.FlowName;



public interface UserRestService {
    //用户登录
    public User userLogin(String username, String password);
	//检测用户是否已经存在
    public User checkUserName(String username);
    //用户注册
    public void register(String username,String password,String role);	
    // 查询全部用户
 	public List<UserVO> getAllUsers();
 	// 新建一个用户
 	public void saveUser(UserVO userForm);
 	//获取流程材料清单
 	public List<Flow> getMaterial(String flowId) ;
 	//获取所有的流程
 	public List<FlowName> getAllFlow() ;
 	//根据userid获取groupid
 	 public Group getGroupID(String userId) ;
 	 
 	 public User  getUserByUserId(String userId);
 	 
 	 
 	 //修改密码
 	 public String updataPassword(String userId,String newPassword);
 	 //删除用户
 	 public String delete(String userId);
}
